//
//  JGSelectedCityTool.m
//  JGMeiTuanHD
//
//  Created by JJetGu on 15/10/10.
//  Copyright (c) 2015年 Free. All rights reserved.
//

#import "JGSelectedCityTool.h"

#define SelectedCityPath [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingPathComponent:@"selectedCity.archive"]

@implementation JGSelectedCityTool

+ (void)addSelectedCityMessage:(NSDictionary *)cityMessage;
{
    [NSKeyedArchiver archiveRootObject:cityMessage toFile:SelectedCityPath];
}

+ (NSDictionary *)selectedCityMessage;
{
    return [NSKeyedUnarchiver unarchiveObjectWithFile:SelectedCityPath];
}

@end
